import { request } from '@/utils/request'

//绑定角色信息
export const lockRoles = function (roleId, authId) {
    return request.post(`/role/auth?roleId=${roleId}&authId=${authId}`)
}

//解绑角色信息
export const unlockRoles = function (roleId, authId) {
    return request.delete(`/role/auth?roleId=${roleId}&authId=${authId}`)
}


//获得某个角色详细信息
export const getRoles = function (id) {
    return request.get(`/role/${id}`)
}

//分页查找角色
export const pageRoles = function (current, size) {
    return request.get(`/role/page?current=${current}&size=${size}`)
}